﻿using TestBat.IModels.Domain;

namespace TestBat.Models.Domain
{
    public class ScheduleResults : IScheduleResults
    {
        public int NumTrainees
        {
            get;
            set;
        }

        public int NumTraineesTookTestGraded
        {
            get;
            set;
        }

        public int NumTraineesTookTestNotGraded
        {
            get;
            set;
        }

        public int NumTraineesNotTookTest
        {
            get;
            set;
        }

        public int NumTraineesTakeTestNow
        {
            get;
            set;
        }

        public double? AverageCorrect
        {
            get;
            set;
        }

        public double? AverageIncorrect
        {
            get
            {
                return (AverageCorrect.HasValue) ? 100.0f - AverageCorrect : null;
            }
        }

        public double? MedianCorrect
        {
            get;
            set;
        }

        public double? DefaultDeviationCorrect
        {
            get;
            set;
        }
    }
}
